import { HTTP } from '../utils/http-p.js'

class ActionModel extends HTTP{

    followUser(userId) {
        return this.request({
            url: '/v/user/followUser',
            data: {
                userId: userId
            }
        })
    }

    cancelUser(userId) {
        return this.request({
            url: '/v/user/cancelUser',
            data: {
                userId: userId
            }
        })
    }

    collectProduction(productionId) {
        return this.request({
            url: '/v/production/collectProduction',
            data: {
                productionId: productionId
            }
        })
    }

    cancelProduction(productionId) {
        return this.request({
            url: '/v/production/cancelProduction',
            data: {
                productionId: productionId
            }
        })
    }

    collectShoot(shootId) {
        return this.request({
            url: '/v/shoot/collectShoot',
            data: {
                shootId: shootId
            }
        })
    }

    cancelShoot(shootId) {
        return this.request({
            url: '/v/shoot/cancelShoot',
            data: {
                shootId: shootId
            }
        })
    }

    collectPlace(placeId) {
        return this.request({
            url: '/v/place/collectPlace',
            data: {
                placeId: placeId
            }
        })
    }

    cancelPlace(shootId) {
        return this.request({
            url: '/v/place/cancelPlace',
            data: {
                shootId: shootId
            }
        })
    }

    clockPlace(placeId) {
        return this.request({
            url: '/v/place/clockPlace',
            data: {
                placeId: placeId
            }
        })
    }

    commentPlace(placeId,content) {
        return this.request({
            url: '/v/place/commentPlace',
            data: {
                placeId: placeId,
                content: content,
            }
        })
    }

}

export { ActionModel }
